// src/api/roleApi.js
import { apiClient } from './base'

export const getRoles = (params) => apiClient.get('/roles',{ params })
export const createRole = (data) => apiClient.post('/roles', data)
export const updateRole = (data) => apiClient.put('/roles', data)
export const deleteRole = (id) => apiClient.delete(`/roles/${id}`)
export const getRoleById = (id) => apiClient.get(`/roles/${id}`)
export const getAllRoles = () => apiClient.get('/roles/all')